﻿using Comany.Core.Model;
using Company.Core.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Company.Hardware.Camera
{
    public struct Photo
    {

        public IntPtr Header {  get; }
        public int Width { get; set; }
        public int Height { get; set; }
        public int Length => Width * Height * Marshal.SizeOf(typeof(ColorBGRA));

        public Photo(UnmanagedArray2D<ColorBGRA> data)
        {
            Header=data.Header;
            Width=data.Width;
            Height=data.Height;
        }


    }
}
